﻿using System;
namespace SimpleChartFramework.charts
{
    /// <summary>
    /// This interface define the behavior to draw a Chart
    /// </summary>
    /// <author>
    /// Sebastião  Gazolla Costa Júnior
    ///</author>
    /// 10/31/2008
    public interface IChart
    {
        void addItem(SimpleChartFramework.Items.ChartItem pItem);
        void dispose();
        void draw();
        System.Drawing.Bitmap Image { get; set; }
        int height { get; set; }
        System.Drawing.Graphics ImageAreaGr { get; set; }
        void setParameters(int width, int height, string title, System.Collections.ArrayList slices);
        void setParameters(int width, int height, string title, System.Collections.ArrayList slices, Boolean legend);
        void setParameters(int x, int y, int width, int height, string title, System.Collections.ArrayList slices);
        void setParameters(int x, int y, int width, int height, string title, System.Collections.ArrayList slices, Boolean legend);
        System.Collections.ArrayList Slices { get; set; }
        string SubTitle { get; set; }
        string Title { get; set; }
        int width { get; set; }
        float x { get; set; }
        float y { get; set; }
        Boolean Legend { get; set; }
        Boolean AutoColor { get; set; }
    }
}
